//
//  CustomCell.m
//  Xib封装Cell
//
//  Created by bosma on 14-3-28.
//  Copyright (c) 2014年 cn.com.bosma. All rights reserved.
/*  cell的自定义类  */

#import "CustomCell.h"
#import "CustomModal.h"
@implementation CustomCell

//自定义Cell读取Xib文件
+ (id)customNib{
    return [[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:nil options:nil][0];
}

//自定义Cell的标识符
+ (id)customID{
    return @"CustomCell";
}


-(void)setCustomModal:(CustomModal *)customModal{
    _customModal = customModal;
    _titleLabel.text = customModal.userName;
    _authorLabel.text = customModal.numberWalk;
    _rankLabel.text = customModal.rank;
    _iconView.image = [UIImage imageNamed:customModal.userImageView];
    
}


@end
